﻿using AutoMapper;
using Colorful.Furniture.ErpCustomerManagement;
using Colorful.Furniture.ErpInventoryManagement;
using Colorful.Furniture.ErpOrderManagement;
using Colorful.Furniture.InterfaceDownstream;
//using Colorful.Furniture.View;

namespace Colorful.Furniture.BackgroundManagement;

/// <summary>
///  后台作业映射配置
/// </summary>
public class BackgroundAutoMapperProfile : Profile
{
    /// <summary>
    ///  自动映射
    /// </summary>
    public BackgroundAutoMapperProfile()
    {
        //****************************输入************************
        
        //CreateMap<OrderWithInventoryInputDto, CustomerOrder>()
        //    .ForMember(x => x.SupplierMerchantId, y => y.MapFrom(z => z.MerchantCode))
        //    .ForMember(x => x.CustomerQty, y => y.MapFrom(z => z.Qty))
        //    .ForMember(x => x.SupplierSubmitNumber, y => y.MapFrom(z => z.SupplierQty * z.Qty))
        //    .ForMember(x => x.SupplierTotalPrice, y => y.MapFrom(z => z.SupplierQty * z.Qty * z.SupplierPrice))
        //    ;

        //CreateMap<SaveCustomerOrderLogInputDto, CustomerOrderLog>();


        //****************************输出************************

        //CreateMap<ViewInventory, OrderWithInventoryInputDto>()
        //    .ForMember(x => x.MerchantCode, y => y.MapFrom(z => z.MerchantCode))
        //    .ForMember(x => x.IsTestOrder, y => y.MapFrom(z => z.IsTest))
        //    .ForMember(x => x.SupplierPrice, y => y.MapFrom(z => z.CostPrice))
        //    ;
        
    }
}

